<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html lang="zh-tw">
<head>
<meta charset="UTF-8">
<title>${cardTemplate.title}</title>
<!-- favicon -->
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico">
<link rel="Bookmark" href="images/favicon.ico" type="image/x-icon"/>
<!-- reset.css -->
<link rel="stylesheet" href="css/reset.css" media="screen">
<!-- Skeleton grid system -->
<link rel="stylesheet" href="css/skeleton.css" media="screen">
<!-- css -->
<link rel="stylesheet" href="css/style.css" media="screen">
<!-- rwdmenu -->
<link type="text/css" rel="stylesheet" href="css/jquery.mmenu.css" />
<!-- welcome2 css -->
<link style="text/css" rel="stylesheet" href="css/rwdmenu_main.css" />

<!-- font-awesome.css -->
<link rel="stylesheet" href="css/font-awesome.min.css" media="screen">
<!-- xmas -->
<link rel="stylesheet" href="css/xmas.css" media="screen">

<!-- Layout and Media queries-->
<link rel="stylesheet" href="css/layout.css" media="screen">
<script src="js/modernizr.custom.js"></script>
<!--[if lt IE 9]>
        <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
<!-- Mobile Specific Meta -->
<meta name="viewport"
	content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=0">

</head>
<body class="welcomebody">

	<div id="page">
		<div class="header FixedTop">
			<a href="#menu" class="headericon"></a>
			<img src="images/logo.png" alt="proactive Logo">
		</div><!-- header -->
		<div class="content">
			<div class="list-screen clearfix">
				<div class="navfull">
					<div class="container">
						<div class="grid_12">
							<div class="logo"><a href="index">Proactive</a></div>
							<ul class="topnav">
							<c:forEach items="${menuList}" var="menu">
								<li>
									<a href="${menu.url}" class="${menu.classString1}">
										${menu.icon}
										${menu.name}
									</a>
								</li>
							</c:forEach>	
							</ul>
							<ul class="login">
								<li><a href="register">註冊</a></li>
								<li><a href="login">登入</a></li>
							</ul>
						</div>
					</div>
				</div>
			</div>
			<div class="cardInfoWrap">
				<div class="container">
					<div class="grid_12">
						<div class="cardArrow">
							<a href="showActivity?id=1"><i class="fa fa-chevron-left"></i> 所有耶誕卡片 </a>	
						</div>
						<div class="cardShare">
						</div>
						<div class="cardShare_2">
						    <a href="#" rel="nofollow" data-reveal-id="login">
						    	<span>製作此卡片</span>
						    </a>
						</div>
					</div>
				</div>
			</div>		
			<div class="banner minh800px">
				<iframe  id="view" src="${cardTemplate.html1Path}" frameborder="0" width="100%" height="800">
					
				</iframe>
			</div>

			

			<footer class="footerbwrap">
				<div class="container">
					<div class="grid_12">
						<span>©2014 PROACTIVE </span> 
						<a href="https://www.facebook.com/pages/Proactive/579983748802096"><img src="images/icon_fb.png" alt="proactive facebook粉絲頁"></a>
						<a href="https://www.youtube.com/channel/UC4SGQg8Qjj5YcgOmopSmk0g"><img src="images/icon_youtube.png" alt="proactive egroup youtube頻道"></a>
					</div>
				</div>
			</footer>
	    </div><!-- content -->

		<!-- 左側meum滑出 -->
		<nav id="menu">
			<ul>		 
				<li class="logo"><a href="index">美編網</a></li>
				<c:forEach items="${menuList}" var="menu">				
				<li class="${menu.classString2}">
					<a class="${menu.classString1}" href="${menu.url}">${menu.icon}${menu.name}</a>
				</li>
				</c:forEach>
				<li class="menumember"><a href="register">註冊</a></li>
				<li class="menumember"><a href="login">登入</a></li>
			</ul>
		</nav>
	</div><!-- page -->
	
	<div id="login" class="reveal-modal">
		<div class="cont clearfix">
			<div class="textaligncenter">
				<h1>會員登入</h1>
				<p class="textGray">使用facebook帳號快速登入</p>
				<button class="btn_fb-login" type="button" onclick="window.location.href='fbLogin'"> Facebook 登入</button>
				<p class="pmaillogin"><span>或</span></p>
			</div>
			<form style="text-align: center;" id="loginForm" method="post" action="checkLogin">
				<label><input type="text" class="textbox account" name="account" placeholder="請輸入帳號"></label><br>
				<label><input type="password" class="textbox key" name="password" placeholder="請輸入密碼"></label><br>
				<button class="btn_login">登入</button><br>				
				<button type="button" class="poplink" onclick="window.location.href='forgetPassword'">忘記密碼</button>
				<button type="button" class="poplink" onclick="window.location.href='register'">成為會員</button><br>
			</form>
		</div>
	</div>
	
	<!-- import jquery -->
	<script
		src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>



	<!-- some jquery method we use -->
	<script src="js/hoverjquery.js"></script>
	<script src="js/listscreen.js"></script>	
	<script src="js/ourjquery.js"></script>	
	<script type="text/javascript" src="js/rwdmenu_main.js"></script>
	<!-- tab -->
  	<script src="js/jquery.hashchange.min.js"></script>
 	<script src="js/jquery.easytabs.min.js"></script>
	<!-- rwdmenu -->
	<script type="text/javascript" src="js/jquery.mmenu.min.all.js"></script>
	<!-- Reveal Modal -->
	<script type="text/javascript" src="js/jquery.reveal.js"></script>	
	<!-- validate -->
    <script src="js/jquery.validate.js"></script>
    <script src="js/messages_zh_TW.js"></script>
    <script src="js/additional-methods.js"></script>   


  	<script src="js/responsiveslides.min.js"></script>
  	
  	<script>
	$(function() {
		$('#tab-container').easytabs();
		$('nav#menu').mmenu();
		$(".rslides").responsiveSlides({
			speed: 2000,            // Integer: Speed of the transition, in milliseconds
		  	timeout: 4000,          // Integer: Time between slide transitions, in milliseconds
		});	    
		$("#loginForm").validate({
			rules:{
				account:"required",
				password:"required"
			}
		});
	});
	</script>

</body>
</html>